package com.lilingguo.easyserver.job;

import com.lilingguo.easyserver.core.EasyServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 心跳检测
 *
 * @Author: 黎铃果
 * @Date: 2020/5/28 16:24
 */
@Component
public class HeartBeatJob implements Runnable {

    @Autowired
    private EasyServer easyServer;

    @Override
    public void run() {
        easyServer.heartBeat();
    }
}
